<div class="panel panel-default">
	<div class="panel-heading">三级营销设置</div>
		<div class='panel-body' >
			<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启营销模式</label>
			<div class="col-sm-9 col-xs-12">
				<label class='radio-inline'>
		       		<input type='radio' value="0" name='isopen_level' {if intval($item['isopen_level'])=='0'}checked{/if}> 否
		    	</label>
				<label class='radio-inline'>
	            	<input type='radio' value="1" name='isopen_level' {if $item['isopen_level']=='1'}checked{/if}> 是
	            </label>
			</div>
		</div>
		
		<div class="level_type" {if empty($item['isopen_level'])}style="display:none;"{else}style="display:block;"{/if}>
			<div class="form-group level_type_box1">
				<label class="col-xs-12 col-sm-3 col-md-2 control-label">营销模式</label>
				<div class="col-sm-9 col-xs-12">
					<label class='radio-inline'>
	                  	<input type='radio' value="1" name='level_type' {if intval($item['level_type'])=='1'}checked{/if}> 一级
	                </label>
					<label class='radio-inline'>
	                  	<input type='radio' value="2" name='level_type' {if $item['level_type']=='2'}checked{/if}> 二级
	                </label>
	                <label class='radio-inline'>
	                	<input type='radio' value="3" name='level_type' {if $item['level_type']=='3'}checked{/if}> 三级
	                </label>
				</div>
			</div>
		
			<div class="level_box" {if empty($item['level_type'])}style="display:none;"{else}style="display:block;"{/if}>
				<div class="form-group level1" {if $item['level_type'] == 1 || $item['level_type'] == 2 || $item['level_type'] == 3}style="display:block;"{else}style="display:none;"{/if}>
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">一级</label>
					<div class="col-sm-9 col-xs-12">
						<div class="input-group">
							<div class="input-group-addon">获得</div>
							<input type="text" name="level1_credit" class="form-control" value="{$item['level1_credit']}" />
							<div class="input-group-addon">积分</div>
							<input type="text" name="level1_money" class="form-control" value="{$item['level1_money']}" placeholder="0.00" />
							<div class="input-group-addon">余额</div>
						</div>
					</div>
				</div>
				<div class="form-group level2" {if $item['level_type'] == 2 || $item['level_type'] == 3}style="display:block;"{else}style="display:none;"{/if}>
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">两级</label>
					<div class="col-sm-9 col-xs-12">
						<div class="input-group">
							<div class="input-group-addon">获得</div>
							<input type="text" name="level2_credit" class="form-control" value="{$item['level2_credit']}" />
							<div class="input-group-addon">积分</div>
							<input type="text" name="level2_money" class="form-control" value="{$item['level2_money']}" placeholder="0.00" />
							<div class="input-group-addon">余额</div>
						</div>
					</div>
				</div>
				<div class="form-group level3" {if $item['level_type'] == 3}style="display:block;"{else}style="display:none;"{/if}>
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">三级</label>
					<div class="col-sm-9 col-xs-12">
						<div class="input-group">
							<div class="input-group-addon">获得</div>
							<input type="text" name="level3_credit" class="form-control" value="{$item['level3_credit']}" />
							<div class="input-group-addon">积分</div>
							<input type="text" name="level3_money" class="form-control" value="{$item['level3_money']}" placeholder="0.00" />
							<div class="input-group-addon">余额</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">提醒文字</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" name="level0_val" class="form-control" value="{$item['level0_val']}" />
						<div class="help-block">逐级提醒消息（例如：我的[level]下线[nickname]，扫码关注了我获得[credit1]积分,获得[credit2]元）</div>
						<div class="help-block">[nickname] 当前扫码关注的人的昵称 ，[level] 当前扫码人针对 一级二级的等级 ，[credit1] 我获取到的积分，[credit2] 我获取到的余额</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">文字链接</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text" name="level0_url" class="form-control" value="{$item['level0_url']}" />
						<div class="help-block">提醒文字的链接地址（如果填写文字的表现形式为超链接，如果为空则是文本）</div>
					</div>
				</div>
			</div>
		
		</div>
	</div>
	
</div>